<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户注册</title>
    <meta charset="UTF-8">
    <style>
        .form-group { margin-bottom: 15px; }
        fieldset { border: 1px solid #ddd; padding: 10px; }
        legend { font-weight: bold; }
    </style>
</head>
<body>
<form action="${pageContext.request.contextPath}/request" method="post" accept-charset="UTF-8">
    <div class="form-group">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" required>
    </div>

    <div class="form-group">
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" required>
    </div>

    <fieldset>
        <legend>请选择爱好:</legend>
        <div>
            <input type="checkbox" id="hobby1" name="hobbies" value="sport">
            <label for="hobby1">运动</label>
        </div>
        <div>
            <input type="checkbox" id="hobby2" name="hobbies" value="music">
            <label for="hobby2">音乐</label>
        </div>
        <div>
            <input type="checkbox" id="hobby3" name="hobbies" value="reading">
            <label for="hobby3">阅读</label>
        </div>
        <div>
            <input type="checkbox" id="hobby4" name="hobbies" value="travel">
            <label for="hobby4">旅行</label>
        </div>
    </fieldset>

    <input type="submit" value="提交">
</form>
</body>
</html>
